OBJS = nipc.o config.o FS.o raid.o plani.o
OPTS = -Wall -O0 -g
LIBS = -lpthread

all: $(OBJS)
	gcc $(OBJS) $(OPTS) $(LIBS) -o RAID

nipc.o: nipc.c
	gcc nipc.c $(OPTS) -c -o nipc.o

config.o: config.c
	gcc config.c $(OPTS) -c -o config.o

FS.o: FS.c
	gcc FS.c $(OPTS) -c -o FS.o

plani.o: plani.c
	gcc plani.c $(OPTS) -c -o plani.o

raid.o: raid.c
	gcc raid.c $(OPTS) -c -o raid.o
	
clean: 
	rm *.o
	rm RAID
